﻿/**
 * ...
 * @author waneck
 */

package asc.enums;

enum ProxyStreamStatus 
{

	ProxyStreamProxyStart;
	ProxyStreamProxyStop;
	ProxyStreamProxyBadName;
	
}

class ProxyStreamStatusTranslator
{
	public static function translate(infoObj: { level:String, code:String } ):ProxyStreamStatus
	{
		return switch (infoObj.code)
		{
			case "ProxyStream.Proxy.Start":
				ProxyStreamProxyStart;
			case "ProxyStream.Proxy.Stop":
				ProxyStreamProxyStop;
			case "ProxyStream.Proxy.BadName":
				ProxyStreamProxyBadName;
		}
	}
}